package view;

import java.util.ArrayList;

import logic.RandomCard;

import data.Card;
import data.User;

public class Game {

	public void gameStart(ArrayList<Card> cards, ArrayList<User> genericPlayers) {
		
		int numbersOfPlayers = genericPlayers.size();
		int numbersOfCards = cards.size();
		ArrayList<Card> timeLine = new ArrayList<Card>();
		int size = cards.size();
		int rand = getRandom(size);
		timeLine.add(cards.get(rand));
		for(;;){
			showGameBoard(timeLine);
			for(int i = 0; i < numbersOfPlayers; i++){
				
				User player = genericPlayers.get(i);
				//GammerMenu gammerMenu = showGammerMenu();
				//ShowMyPoints showMyPoints = getMyPoints();
				
				
			}
			System.exit(0);
		}
		
		
	}

	private ShowGameBoard showGameBoard(ArrayList<Card> timeLine) {
		
		ShowGameBoard showGameBoard = new ShowGameBoard();
		return showGameBoard.getGameBoard(timeLine);
		
	}

	private int getRandom(int size) {
		// TODO Auto-generated method stub
		RandomCard randomCard = new RandomCard();
		return randomCard.randomNumber(size);
		
	}

}
